package blog.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import blog.entity.Tag;
import blog.mapper.TagMapper;

/**
 * Tag标签
 */
@Service
public class TagServiceImpl implements TagService {
	@Resource
	private TagMapper tagMapper;

	/**
	 * 统计标签总数
	 */
	public Integer countTag() {
		return tagMapper.countTag();
	}

	
	/**
	 * 得到标签列表
	 */
	@Override
	public List<Tag> listTag() {
		return tagMapper.listTag();
	}

}
